package com.study.edoc.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="user对象",description="用户对象user")
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户编号")
    private Integer id;

    @ApiModelProperty(value="用户名",required=true)
    private String username;

    @ApiModelProperty(hidden = true)
    private String salt;

    @ApiModelProperty(value="密码",required=true)
    private String password;

    @ApiModelProperty(value="手机号",required=true)
    private String phone;


    @ApiModelProperty(value="真实姓名",required=true)
    private String realName;


    @ApiModelProperty(value="用户昵称",required=true)
    private String nickName;


    @ApiModelProperty(value="电子邮箱",required=true)
    private String email;


    @ApiModelProperty(hidden = true)
    private Boolean status;

    @ApiModelProperty(value="用户性别",required=true)
    private Boolean sex;


    @ApiModelProperty(hidden = true)
    private Boolean deleted;


    @ApiModelProperty(hidden = true)
    private Date createTime;


    @ApiModelProperty(hidden = true)
    private Date updateTime;
}
